package com.monad.firemoth.system.service.impl;

import com.monad.firemoth.system.entity.Role;
import com.monad.firemoth.system.mapper.RoleMapper;
import com.monad.firemoth.system.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色表 服务实现类
 *
 * @author 单C胞生物
 * @since 2024-04-21 11:59:32
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> getRoleByUserId(Long userId) {
        return roleMapper.getRoleByUserId(userId);
    }
}
